package com.cslg.questionnaires.utils;

import java.util.HashMap;
import java.util.Map;

public class JsonMsgBuilder {
    public static HashMap<String, Object> jsonBuild(int code, String msg){
        HashMap<String,Object> json = new HashMap<String, Object>();
        json.put("code",code);
        json.put("msg",msg);
        return json;
    }
    public static HashMap<String, Object> jsonBuild(int code, String msg, Object data){
        return ServiceMessageBuilder.buildMessage(code,msg,data);
    }
}
